import Vue from 'vue'
import App from './App.vue'
import router from '../router'
// import store from '../store'
import axios from 'axios'


import {Input,Button,Radio,Container,Header,Main,Aside,Menu,Submenu,MenuItem,MenuItemGroup,Dropdown,
        DropdownMenu,DropdownItem,Form,FormItem,Select,Switch,DatePicker,Option,Dialog,Upload,Transfer,
        Descriptions,DescriptionsItem,Table,TableColumn,Pagination,Tag,Col,Message,MessageBox,Image,Row,Card} from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import qs from 'qs'
Vue.prototype.$qs = qs

// 全局配置axios的请求根路径
axios.defaults.baseURL = 'http://127.0.0.1/'
// 把axios挂载到Vue.prototype 上，供每个.vue 组件的实例直接使用
Vue.prototype.$http = axios
axios.defaults.headers.common['Authorization'] = sessionStorage.token



Vue.config.productionTip = false
Vue.use(Input)
Vue.use(Button)
Vue.use(Radio)
Vue.use(Container)
Vue.use(Header)
Vue.use(Main)
Vue.use(Aside)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(MenuItemGroup)
Vue.use(Dropdown)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Select)
Vue.use(Switch)
Vue.use(DatePicker)
Vue.use(Option)
Vue.use(Dialog)
Vue.use(Upload)
Vue.use(Transfer)
Vue.use(Descriptions)
Vue.use(DescriptionsItem)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Pagination)
Vue.use(Tag)
Vue.use(Col)
Vue.use(Image)
Vue.use(Row)
Vue.use(Card)

Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm


// Vue.config.productionTip = false;
// Vue.prototype.$http = http;
// Vue.prototype.comm = new comm.TKmsModelClient();

new Vue({
  // store,
  router,
  render: h => h(App)
}).$mount('#app')
